package BookTest;

public class C6Test {
    public static void main(String[] args) {

      C6Animal a = new C6Hawk();
      C6Animal b = new C6Frog();
      C6Animal c = new C6Locust();
      C6Hawk d = (C6Hawk) a;
      C6Frog e = (C6Frog) b;
      C6Locust f = ( C6Locust) c;
      a.eat();
      b.eat();
      c.eat();
    }
}
